import { createApp } from 'vue'
// pinia
import { createPinia } from 'pinia'
// 引入路由
import router from "./utils/routerGuard"
import 'bootstrap/dist/css/bootstrap.min.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'






import App from '@/App.vue'
import CommonHead from '@/components/CommonHead.vue'
import FootCopyright from '@/components/FootCopyright.vue'
import PersonalLeft1 from '@/components/PersonalLeft.vue'
import '@/assets/css/style.css'
import '@/assets/css/main.css'




const app = createApp(App)



// pinia
app.use(createPinia())
app.component('CommonHead', CommonHead)
app.component('FootCopyright', FootCopyright)
app.component('PersonalLeft', PersonalLeft1)

app.use(router)
app.use(ElementPlus)


app.mount('#app')



// 测试接口
// fetch('/api/data/index/json')
//     .then(body => body.json())
//     .then(res => {
//         console.log(res);

//     })

